package com.ai.sml.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量�?
 */
public final class Constants {
	public static final String SESSION_USER = "user";
	public static final String NAMESPACE_SHARE = "/sh";
	public static final String SESSION_USER_ID = "userId";
	
	public static final String AppSYSId = "1400";//系统id
	public static final String AppShopId = "APP_SHOP_ID";//店铺id

	public interface SYSTEM_PROP_CONFIG {
		String APP_ARRAY_UNION_URL = "APP_ARRAY_UNION_URL";// ecpcore层地址配置
		String REDIS_ADDR_CFG = "REDIS_ADDR_CFG";// Redis IP地址配置，各ip之间以半角逗号","分隔
		String REDIS_CFG_SPLIT = ",";// 分隔符
		String REDIS_MASTER_NAME="boyd";
		String REDIS_MAX_TOTAL = "REDIS_MAX_TOTAL"; // 最大连接数key值，默认8个
		String REDIS_MAX_IDLE = "REDIS_MAX_IDLE"; // 最大空闲连接数key值，默认8个
		String REDIS_MIN_IDLE = "REDIS_MIN_IDLE"; // 最小空闲连接数key值，默认8个
	}
	

	// FTP配置
	public interface FTP_CONFIG {
		String FTP_HOST_IP = "FTP_HOST_IP";// FTP的ip地址
		String FTP_HOST_PORT = "FTP_HOST_PORT";// FTP的端口
		String FTP_HOST_USERNAME = "FTP_HOST_USERNAME";// FTP用户名
		String FTP_HOST_USERPWD = "FTP_HOST_USERPWD";// FTP密码
		/**
		 * 上传路径配置
		 */
		String FTP_UPLOAD_MCDS_PATH = "FTP_UPLOAD_MCDS_PATH";
		String FTP_UPLOAD_MCDS_NGINX = "FTP_UPLOAD_MCDS_NGINX";
		// FTP路径
		String FTP_PATH = "FTP_PATH";

		String FTP_PREFIX_IN = "FTP_PREFIX_IN"; // 内网访问
		String FTP_PREFIX_OUT = "FTP_PREFIX_OUT"; // 外网访问

	}

	// SFTP配置
	public interface SFTP_CONFIG {
		String SFTP_HOST_IP = "SFTP_HOST_IP";// FTP的ip地址
		String SFTP_HOST_PORT = "SFTP_HOST_PORT";// FTP的端口
		String SFTP_HOST_USERNAME = "SFTP_HOST_USERNAME";// FTP用户名
		String SFTP_HOST_USERPWD = "SFTP_HOST_USERPWD";// FTP密码
		/**
		 * 上传路径配置
		 */
		String SFTP_UPLOAD_MCDS_PATH = "SFTP_UPLOAD_MCDS_PATH";
		String SFTP_UPLOAD_MCDS_NGINX = "SFTP_UPLOAD_MCDS_NGINX";

		String SFTP_PREFIX_IN = "FTP_PREFIX_IN"; // 内网访问
		String SFTP_PREFIX_OUT = "FTP_PREFIX_OUT"; // 外网访问

	}

	// Topic的值，注意，消费时的topic需与生产者生产时的值相同
	public interface MQ_TOPIC {
		String TOPIC_OPER_LOG = "TOPIC_OPER_LOG";
		String TOPIC_MARKET_FTP = "TOPIC_MARKET_FTP";
	}

	// 系统管理FTP配置
	public interface SYSMANAGE_FTP_CONFIG {
		String FTP_HOST_IP = "FTP_HOST_IP";// FTP的IP地址
		String FTP_HOST_PORT = "FTP_HOST_PORT";// FTP的端口
		String FTP_HOST_USERNAME = "FTP_HOST_USERNAME";// FTP用户名
		String FTP_HOST_USERPWD = "FTP_HOST_USERPWD";// FTP密码
		String FTP_PATH_FILE_UPLOAD = "FTP_PATH_SYSMANAGE_UPLOAD";// 文件上传目录
	}
	
	
	public static final String MERCHANT_CHNL_ID = "1418";// 商户账户渠道
	public static final String CHANNEL_10085_MERCHANT_SYSTEM = "1418";// 渠道编码（10085微商业务管理平台）

	public static final String PRIMARY_KEY = "10085odr"; //私钥
	
	public interface WECHAT_INFO {
		String WECHAT_SUBSCRIBE = "1";
		String WECHAT_OPEN_ID = "1";
		String WECHAT_NICK_NAME = "nickname";
		String WECHAT_HEAD_IMG = "headimgurl";
	}
	//流量兑换测试环境秘钥
//	public interface EXCHANGE_INFO {
//		String SERVER_URL = "http://10085.test.happyapk.com:54100";
//	    // 你的商户ID
//	    int CPID = 1000001;
//	    // 你的赠送私钥
//	    String PRI_KEY = "MIICXQIBAAKBgQDO8GEWndiXQYnvwVMMRJGdYwDco3lOKpSs4ASN+260g5D2x64Kg9UodNeLFVh83s01fQMTqNzf6HBEQeVYlOObPZI9yNkOI2sNh/Ud16EdPsH0olA52zZs/F1aRmE+XvSyaQ6oI7DKoaglNUJ5j08Med3gxLBqE/HfHe5fMzA3fQIDAQABAoGBAIdKRE8i9x08Lc/fVkoo8gIxXbjh70aZNAYplxC0FtZRRY7xUOly8wK2EMzPMcDBcOvNRRuvRGfmcK9PXX+iJ4KDs8A0Ia63txqY5W5tNWC0TjoFpNRXwsn2xDIsTCOZa7WmjYEGO1DHPLwUpCJM/UTn35FzdQq2cX/ZIqWpSxfBAkEA5siMdKrn7xMy/Agd3c+6NuUPneiocH0S7TNfvUmPkUkFJZuk352VuzaWdAktL2x+bFw9fNFMmwt3bh7jR9ettQJBAOWM22F7JgRRb08vVk8j9dXoQcKaoSa2CxkIldsQ63yqz13W5DjUCLsCUj6u5wKGIs8EqL9j5mYaDNpNCRszP6kCQGrNGrsPMKCiOPEL7I5vCJVI8i44smLEbxLYuJDHzyoEKd6apfVaXyWxgHUYnhGZWvRYx5fQ4GvMJawPnUztEhUCQQCe8diZ+A6L4ONk/g8SP4Eiu26FVFKPnm+yxsoU5PNZ4GAzxu9CFjdxXhsawjq8+aoylDRQSdkoC5OouLy8c9D5AkANpkmoZHnV+kYfAGPoRYh7ujA8WWgFXbV5/AexgoKablj2uq9y4zbPC0L8Ayzmjd6KPbxfRq6/RlGYGqzUp2rC";
//	    // 充值平台的公钥
//	    String PLAT_PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDO8GEWndiXQYnvwVMMRJGdYwDco3lOKpSs4ASN+260g5D2x64Kg9UodNeLFVh83s01fQMTqNzf6HBEQeVYlOObPZI9yNkOI2sNh/Ud16EdPsH0olA52zZs/F1aRmE+XvSyaQ6oI7DKoaglNUJ5j08Med3gxLBqE/HfHe5fMzA3fQIDAQAB";
//	}
	//流量兑换生产环境秘钥
	public interface EXCHANGE_INFO {
		String SERVER_URL = "http://life.10085.cn:20230";
		// 你的商户ID
		int CPID = 1017;
		// 你的赠送私钥
		String PR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	public interface DOUBLE_EGG_RESNO {
		String FLOW_100RMB = "21"; //双旦100元流量
		String FLOW_50RMB = "22"; //双旦50元流量卡
		String FLOW_30RMB = "23"; //双旦30元流量卡
		String RED_NOTE3 = "24"; //双旦红米note3手机
		String TCL = "25"; //双旦TCL
	}
	
	// 联想商家预约砸蛋活动奖项
	public interface EGG_LENOVO_RESNO {
		String TCL = "31"; //TCL 小野手机
		String LENOVE_EARPHONE = "32"; //联想耳机
		String MOVE_POWER_SOURCE = "33"; //移动电源
	}
	
	// 联想商家预约砸蛋活动相关参数
	public interface EGG_LENOVO_PARAM {
		String START_TIME = "2016-01-13 00:00:00";//活动开始时间
		String END_TIME  = "2016-01-19 23:59:59";//活动结束时间
		String MCDS_UNIT_IDS = "201510261908183342610,201510261908184762611,201510261908185522612,201510261908186262613";//参与活动商品组件ID集
		String ODR_CHNL_IDS = "1201,1202"; //活动开发渠道ID集,微商城C端，B端
	}
	
	//省份的json字符串
	public static final String PROVINCE_JSON = "[    {        \"txt\": \"湖南\",        \"val\": \"19\"    },    {        \"txt\": \"台灣\",        \"val\": \"35\"    },    {        \"txt\": \"河南\",        \"val\": \"17\"    },    {        \"txt\": \"湖北\",        \"val\": \"18\"    },    {        \"txt\": \"香港\",        \"val\": \"33\"    },    {        \"txt\": \"江西\",        \"val\": \"15\"    },    {        \"txt\": \"澳门\",        \"val\": \"34\"    },    {        \"txt\": \"山东\",        \"val\": \"16\"    },    {        \"txt\": \"安徽\",        \"val\": \"13\"    },    {        \"txt\": \"福建\",        \"val\": \"14\"    },    {        \"txt\": \"江苏\",        \"val\": \"11\"    },    {        \"txt\": \"浙江\",        \"val\": \"12\"    },    {        \"txt\": \"广西\",        \"val\": \"21\"    },    {        \"txt\": \"广东\",        \"val\": \"20\"    },    {        \"txt\": \"海南\",        \"val\": \"22\"    },    {        \"txt\": \"重庆\",        \"val\": \"23\"    },    {        \"txt\": \"四川\",        \"val\": \"24\"    },    {        \"txt\": \"贵州\",        \"val\": \"25\"    },    {        \"txt\": \"云南\",        \"val\": \"26\"    },    {        \"txt\": \"西藏\",        \"val\": \"27\"    },    {        \"txt\": \"陕西\",        \"val\": \"28\"    },    {        \"txt\": \"甘肃\",        \"val\": \"29\"    },    {        \"txt\": \"天津\",        \"val\": \"3\"    },    {        \"txt\": \"北京\",        \"val\": \"2\"    },    {        \"txt\": \"上海\",        \"val\": \"10\"    },    {        \"txt\": \"辽宁\",        \"val\": \"7\"    },    {        \"txt\": \"青海\",        \"val\": \"30\"    },    {        \"txt\": \"内蒙古\",        \"val\": \"6\"    },    {        \"txt\": \"山西\",        \"val\": \"5\"    },    {        \"txt\": \"新疆\",        \"val\": \"32\"    },    {        \"txt\": \"河北\",        \"val\": \"4\"    },    {        \"txt\": \"宁夏\",        \"val\": \"31\"    },    {        \"txt\": \"黑龙江\",        \"val\": \"9\"    },    {        \"txt\": \"吉林\",        \"val\": \"8\"    }]";// 省份的json字符串
	public static final String ADDRESS_KEYWORDS = "郑州大世界|华强北";// 收货地址黄牛关键字
	
	
	public interface SMS_SEND_PARA{
		String Apikey="055f4b1c630578b818d93c0170d0937b";
		String Username="wsc85";
		String urlString="https://172.17.15.120:20080/sendtempsms";
		String retCode_200="200";
		String retSuccString = "SUCCESS";
		String retReSend = "RESEND";
		String retFailString = "FAIL";
	}
	
	//redis中key值，商品预约功能，背景图和商品ID
	public static final String BOOKING_PRODUCTID = "booking_prodId";
	public static final String BOOKING_PICPATH = "booking_picPath";
	//获取预约配置信息，外网服务器访问路径，生产环境
	public static final String BOOKING_CONFINFO_HTTPPATH = "http://120.194.44.101:9999/10085/booking/getBookingConf.do?codeStr=1";
	
	public static final Map<String, String> RECHRGSTS = new HashMap<String, String>();
	static {
		RECHRGSTS.put("00","");
		RECHRGSTS.put("01","未知号码未指定路由");
		RECHRGSTS.put("02","未知号码指定供应商未开通");
		RECHRGSTS.put("03","未知号码指定供应商合同到期");
		RECHRGSTS.put("04","未知号码指定供应商不支持购买的商品应用类型");
		RECHRGSTS.put("05","未知号码指定供应商余额不足");
		RECHRGSTS.put("06","未知号码流量获取失败");
    	RECHRGSTS.put("07","特殊商品（商品不适用于全国）流量获取失败");
    	RECHRGSTS.put("08","自动路由未配置适合的供应商");
    	RECHRGSTS.put("09","商品流量获取失败");
	}
	
	/** 系统参数 */
	public interface PARAM {
		public static final String SYSTEM_UPDATING = "SYSTEM_UPDATING";
		public static final String TEST_CUSTOMER_LOGINIDS = "TEST_CUSTOMER_LOGINIDS";
		public static final String UPDATING_ORDER_MSG = "UPDATING_ORDER_MSG";
	}
}
